import { getToken } from './auth'
export function exportExcel(url, data) {
  var str = ''
  if (Object.keys(data)) {
    for (let i in data) {
      str += `i=obj[i]&`
    }
  }
  window.location.href = `${url}?${str}token=${getToken()}`
}
